package smarthouse.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The persistent class for the privileges database table.
 * 
 */
@Entity
@Table(name = "privileges")
@NamedQuery(name = "Privilege.findAll", query = "SELECT p FROM Privilege p")
public class Privilege implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int userId;

	private boolean houseLook;

	private boolean lights;

	private boolean roomEl;

	private boolean temp;

	/**
	 * Default constructor
	 */
	public Privilege() {
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public int getUserId() {
		return this.userId;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public boolean getHouseLook() {
		return this.houseLook;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public void setHouseLook(boolean houseLook) {
		this.houseLook = houseLook;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public boolean getLights() {
		return this.lights;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public void setLights(boolean lights) {
		this.lights = lights;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public boolean getRoomEl() {
		return this.roomEl;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public void setRoomEl(boolean roomEl) {
		this.roomEl = roomEl;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public boolean getTemp() {
		return this.temp;
	}

	/**
	 * Getter/Setter
	 * 
	 * @return
	 */
	public void setTemp(boolean temp) {
		this.temp = temp;
	}

}